package com.emergency.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.emergency.data.entity.EmergencySuppliesPoint;
import com.emergency.data.vo.EmergencySuppliesPointDetailsVO;
import com.emergency.data.vo.EmergencySuppliesPointVO;

import java.util.List;

/**
 * (EmergencySuppliesPoint)应急物资点服务
 *
 * @author makejava
 * @since 2020-09-17
 */
public interface EmergencySuppliesPointService extends IService<EmergencySuppliesPoint> {

    /**
     * 应急物资点列表
     *
     * @param streetId 乡镇/街道ID
     * @param villageId 村/社区ID
     * @param name 输入搜索的地点名称
     * @param type 查询类型 1-乡镇/街道 2-村/社区
     * @return List
     */
    List<EmergencySuppliesPointVO> getEmergencySuppliesPointList(Long streetId, Long villageId, String name, Integer type);

    /**
     * 应急物资点详情
     *
     * @param id 应急物资点ID
     * @return EmergencySuppliesPointDetailsVO
     */
    EmergencySuppliesPointDetailsVO getEmergencySuppliesPointDetail(Long id);
}
